﻿using System.Web.Http;
using System.Web.Mvc;

namespace FoodBank.Web
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
            filters.Add(new LimitHttpsFilter());
            filters.Add(new ViewBagInjectionFilter());

            GlobalConfiguration.Configuration.Filters.Add(new CultureActionFilter());
            GlobalConfiguration.Configuration.Filters.Add(new ValidationActionFilter());
        }
    }
}